<template>
	<uni-popup ref="popup" type="bottom" :mask-click="false" :is-mask-click="false" border-radius="40rpx 40rpx 0 0">
		<view class="inner-box">
			<view class="company-box">
				<view v-if="!isReport" class="company-item" @tap="isReport=true">
					投诉
				</view>
				<template v-else>
					<view class="company-item company-item-border">
						其他
					</view>
					<view class="company-item company-item-border">
						广告
					</view>
					<view class="company-item">
						内容虚假
					</view>
				</template>
				<view class="fill"></view>
				<view class="company-item" @tap="close">
					取消
				</view>
			</view>
		</view>
	</uni-popup>
</template>

<script>
	import {
		mapState,
		mapGetters
	} from 'vuex';
	export default {
		data() {
			return {
				isReport: false,
			}
		},
		methods: {
			close() {
				this.$refs.popup.close()
			},
			open() {
				this.$refs.popup.open()
			},
		}
	}
</script>

<style lang="scss" scoped>
	.inner-box {
		background: #FFFFFF;
		padding: 0 39rpx;
		border-radius: 40rpx 40rpx 0rpx 0rpx;
		overflow: hidden;

		.company-box {
			.company-item {
				font-weight: 500;
				font-size: 36rpx;
				color: #222222;
				text-align: center;
				padding: 61rpx 0 48rpx 0;
			}

			.company-item-border {
				border-bottom: 1rpx #E9E9E9 solid;
			}

			.fill {
				width: 100%;
				height: 8rpx;
				background: #F2F2F2;
			}
		}


	}
</style>